Optimal. Leaf size=139 \[ -\frac{a+b \log \left (c (d+e x)^n\right )}{2 g \left (f+g x^2\right )}-\frac{b e^2 n \log \left (f+g x^2\right )}{4 g \left (d^2 g+e^2 f\right )}+\frac{b e^2 n \log (d+e x)}{2 g \left (d^2 g+e^2 f\right )}+\frac{b d e n \tan ^{-1}\left (\frac{\sqrt{g} x}{\sqrt{f}}\right )}{2 \sqrt{f} \sqrt{g} \left (d^2 g+e^2 f\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0783081, antiderivative size = 139, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {2413, 706, 31, 635, 205, 260} \[ -\frac{a+b \log \left (c (d+e x)^n\right )}{2 g \left (f+g x^2\right )}-\frac{b e^2 n \log \left (f+g x^2\right )}{4 g \left (d^2 g+e^2 f\right )}+\frac{b e^2 n \log (d+e x)}{2 g \left (d^2 g+e^2 f\right )}+\frac{b d e n \tan ^{-1}\left (\frac{\sqrt{g} x}{\sqrt{f}}\right )}{2 \sqrt{f} \sqrt{g} \left (d^2 g+e^2 f\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2413
Rule 706
Rule 31
Rule 635
Rule 205
Rule 260
Rubi steps
\begin{align*} \int \frac{x \left (a+b \log \left (c (d+e x)^n\right )\right )}{\left (f+g x^2\right )^2} \, dx &=-\frac{a+b \log \left (c (d+e x)^n\right )}{2 g \left (f+g x^2\right )}+\frac{(b e n) \int \frac{1}{(d+e x) \left (f+g x^2\right )} \, dx}{2 g}\\ &=-\frac{a+b \log \left (c (d+e x)^n\right )}{2 g \left (f+g x^2\right )}+\frac{(b e n) \int \frac{d g-e g x}{f+g x^2} \, dx}{2 g \left (e^2 f+d^2 g\right )}+\frac{\left (b e^3 n\right ) \int \frac{1}{d+e x} \, dx}{2 g \left (e^2 f+d^2 g\right )}\\ &=\frac{b e^2 n \log (d+e x)}{2 g \left (e^2 f+d^2 g\right )}-\frac{a+b \log \left (c (d+e x)^n\right )}{2 g \left (f+g x^2\right )}+\frac{(b d e n) \int \frac{1}{f+g x^2} \, dx}{2 \left (e^2 f+d^2 g\right )}-\frac{\left (b e^2 n\right ) \int \frac{x}{f+g x^2} \, dx}{2 \left (e^2 f+d^2 g\right )}\\ &=\frac{b d e n \tan ^{-1}\left (\frac{\sqrt{g} x}{\sqrt{f}}\right )}{2 \sqrt{f} \sqrt{g} \left (e^2 f+d^2 g\right )}+\frac{b e^2 n \log (d+e x)}{2 g \left (e^2 f+d^2 g\right )}-\frac{a+b \log \left (c (d+e x)^n\right )}{2 g \left (f+g x^2\right )}-\frac{b e^2 n \log \left (f+g x^2\right )}{4 g \left (e^2 f+d^2 g\right )}\\ \end{align*}
Mathematica [A] time = 0.160071, size = 165, normalized size = 1.19 \[ \frac{2 b d e \sqrt{g} n \left (f+g x^2\right ) \tan ^{-1}\left (\frac{\sqrt{g} x}{\sqrt{f}}\right )-\sqrt{f} \left (2 a d^2 g+2 a e^2 f+2 b \left (d^2 g+e^2 f\right ) \log \left (c (d+e x)^n\right )-2 b e^2 n \left (f+g x^2\right ) \log (d+e x)+b e^2 g n x^2 \log \left (f+g x^2\right )+b e^2 f n \log \left (f+g x^2\right )\right )}{4 \sqrt{f} g \left (f+g x^2\right ) \left (d^2 g+e^2 f\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.529, size = 765, normalized size = 5.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.95012, size = 817, normalized size = 5.88 \begin{align*} \left [-\frac{2 \, a e^{2} f^{2} + 2 \, a d^{2} f g +{\left (b d e g n x^{2} + b d e f n\right )} \sqrt{-f g} \log \left (\frac{g x^{2} - 2 \, \sqrt{-f g} x - f}{g x^{2} + f}\right ) +{\left (b e^{2} f g n x^{2} + b e^{2} f^{2} n\right )} \log \left (g x^{2} + f\right ) - 2 \,{\left (b e^{2} f g n x^{2} - b d^{2} f g n\right )} \log \left (e x + d\right ) + 2 \,{\left (b e^{2} f^{2} + b d^{2} f g\right )} \log \left (c\right )}{4 \,{\left (e^{2} f^{3} g + d^{2} f^{2} g^{2} +{\left (e^{2} f^{2} g^{2} + d^{2} f g^{3}\right )} x^{2}\right )}}, -\frac{2 \, a e^{2} f^{2} + 2 \, a d^{2} f g - 2 \,{\left (b d e g n x^{2} + b d e f n\right )} \sqrt{f g} \arctan \left (\frac{\sqrt{f g} x}{f}\right ) +{\left (b e^{2} f g n x^{2} + b e^{2} f^{2} n\right )} \log \left (g x^{2} + f\right ) - 2 \,{\left (b e^{2} f g n x^{2} - b d^{2} f g n\right )} \log \left (e x + d\right ) + 2 \,{\left (b e^{2} f^{2} + b d^{2} f g\right )} \log \left (c\right )}{4 \,{\left (e^{2} f^{3} g + d^{2} f^{2} g^{2} +{\left (e^{2} f^{2} g^{2} + d^{2} f g^{3}\right )} x^{2}\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.37988, size = 294, normalized size = 2.12 \begin{align*} \frac{b d n \arctan \left (\frac{g x}{\sqrt{f g}}\right ) e}{2 \,{\left (d^{2} g + f e^{2}\right )} \sqrt{f g}} - \frac{b n e^{2} \log \left (g x^{2} + f\right )}{4 \,{\left (d^{2} g^{2} + f g e^{2}\right )}} + \frac{b g n x^{2} e^{2} \log \left (x e + d\right ) - b d^{2} g n \log \left (x e + d\right ) - 2 \, b d^{2} g \log \left (c\right ) - 2 \, a d^{2} g - 2 \, b f e^{2} \log \left (c\right ) - 2 \, a f e^{2}}{2 \,{\left (d^{2} g^{3} x^{2} + f g^{2} x^{2} e^{2} + d^{2} f g^{2} + f^{2} g e^{2}\right )}} - \frac{b d^{2} g \log \left (c\right ) + a d^{2} g + b f e^{2} \log \left (c\right ) + a f e^{2}}{2 \,{\left (d^{2} g + f e^{2}\right )}{\left (g x^{2} + f\right )} g} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]